@extends('base')

@section('content')
    <div class="layui-card">
        <div class="layui-card-body">
            <form class="layui-form" action="{{route('caiwu.finance.check',['id'=>$model->id])}}" method="post">
                {{csrf_field()}}
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">付款金额</label>
                    <div class="layui-form-mid layui-word-aux">
                        {{$model->money}} {{\Illuminate\Support\Arr::get(config('freeswitch.pay_type'),$model->pay_type)}}
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">付款凭证</label>
                    <div class="layui-form-mid layui-word-aux">
                        @if($model->multiple_file)
                            @foreach(explode(',',$model->multiple_file) as $k => $v)
                                <a href="{{$v}}" target="_blank" title="点击查看">凭证{{$k+1}}</a>
                            @endforeach
                        @endif
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="check_status" lay-verify="required" value="3" title="通过" @if($model->check_status==3) checked @endif>
                        <input type="radio" name="check_status" lay-verify="required" value="2" title="不通过" @if($model->check_status==2) checked @endif>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <textarea name="check_result" class="layui-textarea" lay-verify="required">{{$model->check_result}}</textarea>
                    </div>
                    <div class="layui-word-aux layui-form-mid"></div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="button" lay-submit lay-filter="go-close-refresh" class="layui-btn layui-btn-sm">确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection



